home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
09-01.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-06
|
681b
|
31 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
Perimeter$ = CHR$(&hFF)+CHR$(&h80)+CHR$(&h41)+CHR$(&h00)+CHR$(&h22)+CHR$(&h00)+CHR$(&h14)+CHR$(&h00)+CHR$(&h08)+CHR$(&h00)
Interior$ = CHR$(&h00)+CHR$(&h00)+CHR$(&h3E)+CHR$(&h00)+CHR$(&h1C)+CHR$(&h00)+CHR$(&h08)+CHR$(&h00)+CHR$(&h00)+CHR$(&h00)
NewMode = FGbestmode(320,200,1)
IF NewMode < 0 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 color graphics mode."
STOP
END IF
OldMode = FGgetmode
FGsetmode NewMode
FGsetcolor 7
FGrect 0, 319, 0, 199
FGmove 156, 101
FGsetcolor 1
FGdrawmap Perimeter$, 2, 5
FGsetcolor 2
FGdrawmap Interior$, 2, 5
FGwaitkey
FGsetmode OldMode
FGreset
END